//
//  LLBShopDetailMessageCell.h
//  FLLTB
//
//  Created by apple on 2019/7/12.
//  Copyright © 2019 LLB. All rights reserved.
//

#import <RongIMKit/RongIMKit.h>
#import "LLBDetailMessage.h"

NS_ASSUME_NONNULL_BEGIN



@class LLBShopDetailMessageCell;

@protocol HMDownloadTableViewCellDegate <RCMessageCellDelegate>

- (void)goOrderTableViewCellNeedDelete:(NSDictionary *)dic;

- (void)shareTableViewCellNeedDelete:(NSDictionary *)dic;



@end

typedef void(^cellViewButtonBlock)(NSUInteger type,NSString *string);//点击一个选项的回调

@interface LLBShopDetailMessageCell : RCMessageCell


@property (nonatomic , copy) cellViewButtonBlock cellButtonType;


@property (nonatomic, weak) id<HMDownloadTableViewCellDegate> delegate;

/*!
 文本内容的Label
 */
@property(strong, nonatomic) UILabel *textLabel;
/*!
 图片
 */
@property(strong, nonatomic) UIImageView *rightimgV;

/*!
 图片
 */
@property(strong, nonatomic) UIImageView *leftImageView;

/*!
 优惠券
 */
@property(strong, nonatomic) UILabel *couponLabel;

/*!
 返现
 */
@property(strong, nonatomic) UILabel *reurnMoneyLabel;

/*!
 原价
 */
@property(strong, nonatomic) UILabel *originalPriceLabel;

/*!
 现价
 */
@property(strong, nonatomic) UILabel *priceLabel;

/*!
 下单
 */
@property(strong, nonatomic) UIButton *goOrderButton;

/*!
分享
 */
@property(strong, nonatomic) UIButton *shareButton;

/*!
 背景View
 */
@property(nonatomic, strong) UIImageView *bubbleBackgroundView;

/*!
 根据消息内容获取显示的尺寸
 
 @param message 消息内容
 
 @return 显示的View尺寸
 */
+ (CGSize)getBubbleBackgroundViewSize:(LLBDetailMessage*)message;

@end

NS_ASSUME_NONNULL_END
